package com.wsm.common.enums;

/**
 * @author wangshimin
 */
public class Constant {
    //自动去除表前缀
    public static final String AUTO_REOMVE_PRE = "true";
    //停止计划任务
    public static final String STATUS_RUNNING_STOP = "stop";
    //开启计划任务
    public static final String STATUS_RUNNING_START = "start";
    //通知公告阅读状态-未读
    public static final String OA_NOTIFY_READ_NO = "0";
    //通知公告阅读状态-已读
    public static int OA_NOTIFY_READ_YES = 1;
    //部门根节点id
    public static Long DEPT_ROOT_ID = 0L;
    //缓存方式
    public static final String CACHE_TYPE_REDIS = "redis";
    //error
    public static final String LOG_ERROR = "error";
    //登录失败
    public static final String LOG_UNSUCCESS_NUM = "LOG_UNSUCCESS_NUM_";
    //限制登录
    public static final String LIMIT_LOG = "LIMIT_LOG_";
    //redis缓存前缀
    public static final String CACHE_PREFIX = "Redis_Cache_key_";
    //redis防止重复提交前缀
    public static final String DUPLICATE_TOKEN_KEY = "duplicate_token_key_";
    //用户登录状态
    public static final String REDIS_SHIRO_LOGIN_FILTER = "shiro_redis_filter_";

    public static final String LIMIT_NUM_URL = "/error/400";

    public static final String LIMIT_URL = "/error/401";
    //黑名单限制次数前缀
    public static final String LIMIT_KEY_NUMBER = "LIMIT_KEY_NUMBER_";
    //黑名单ip前缀
    public static final String LIMIT_KEY = "LIMIT_KEY_";
    //允许一分钟内的最多访问数
    public static final int LIMIT_MAX_NUMBER = 100;


}
